//router.js 引入路由
import Vue from 'vue'
import Router from 'vue-router'
//自定义组件
import index from "./components/index"
import zx from "./components/zx"
import product from "./components/product"
import cart from "./components/cart"
import home from "./components/home"
import benzhou from "./components/benzhou"
import login from "./components/login"
import reg from "./components/reg"

Vue.use(Router)
export default new Router({
  routes: [
    {path:'/',component:index},
    {path:"/reg",component:reg},
    {path:'/login',component:login},
    {path:'/zx',component:zx},
    {path:'/product',component:product},
    {path:'/cart',component:cart},
    {path:'/home',component:home},
    {path:"/benzhou",component:benzhou}
  ]
})
